rm update
[EroBeats.git] / Djinn and Tonic - Erobeats / TempoTools.h
blob8d60aeddb9b04a91707e0dc75724caec517ce7f7
1 #pragma once
3 #include "RhythmIO.h"
5 #include <vector>
6 #include <chrono>
7 #include <iostream>
9 class TempoTools
11 public:
12 TempoTools(RhythmIO* rio);
13 ~TempoTools();
15 short autoPlay(int type);
16 short clickAccuracy(int type, bool cout);
17 short clickAccuracyRange(int type);
18 double clickTempo(int time);
19 void moveTicker();
21 void createTimeData(std::string levelPath);
22 void clearTimeData();
23 void proccessDataSlow();
24 void setMusicStart(long long musicStart);
25 void countDown(float* time, float durration);
27 long long musicStart;
29 long long fileTime[9];
30 long long oldTime[9];
31 long long cueFileTime[9];
33 bool autoplayed[9];
35 RhythmIO* rio;
37 std::string levelPath;
39 bool done;
40 double tempo;
42 int errorMarginPerf;
43 int errorMarginGood;
44 int errorMarginOK;
45 int errorMarginBad;
47 std::vector<double> clickTimes;
48 std::vector<std::vector<int>> timeKeys;
49 std::vector<std::vector<long long>> hitData;
50 std::vector<std::vector<long long>> cueData;
52 private: